package com.net.xpay.common.manager;

import com.net.common.manager.DomainManager;
import com.net.xpay.common.domain.SafePayBookPreApplyRecord;
import com.net.xpay.common.model.search.SafePayBookPreApplyRecordSearchModel;

import java.util.List;


public interface SafePayBookPreApplyRecordManager extends DomainManager<Long,SafePayBookPreApplyRecord> {
    SafePayBookPreApplyRecord getByToken(String token);

    List<SafePayBookPreApplyRecord> search(SafePayBookPreApplyRecordSearchModel searchModel);

    long searchCount(SafePayBookPreApplyRecordSearchModel searchModel);

    SafePayBookPreApplyRecord getLastByAlipayName(String alipayName, String alipayNickName);

    SafePayBookPreApplyRecord getByExternalAgreementNo(String externalAgreementNo);

    List<SafePayBookPreApplyRecord> list(SafePayBookPreApplyRecordSearchModel searchModel);
}
